package com.yunxi.service.dubboService.impl.sto;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.util.WgrDate;
import com.yunxi.model.sto.ReportPartnerYear;
import com.yunxi.qrtz.service.DailyReportJobDubboService;
import com.yunxi.service.localService.sto.DailyReportService;
import com.yunxi.service.localService.sto.ReportPartnerYearService;
import com.yunxi.sto.pojo.DailyReportVO;
import com.yunxi.sto.pojo.MonthlyReportVO;
import com.yunxi.sto.pojo.ReportPartnerYearVO;
import com.yunxi.sto.pojo.YearReportVO;
import com.yunxi.sto.service.DailyReportDubboService;
import com.yunxi.sto.service.ReportPartnerYearDubboService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Guan
 * @since 2020-03-09
 */
public class DailyReportJobDubboServiceImpl implements DailyReportJobDubboService {

    @Autowired
    DailyReportDubboService dailyReportDubboService;

    @Override
    public void autoCalcMain() throws Exception {

        DailyReportVO dailyReportVO = new DailyReportVO();
        dailyReportVO.setQueryDate(WgrDate.getCurrentDateStr());
        dailyReportDubboService.dayCalcMain(dailyReportVO);

        MonthlyReportVO monthlyReportVO = new MonthlyReportVO();
        monthlyReportVO.setQueryDate(WgrDate.getCurrentDateStr());
        dailyReportDubboService.monthCalcMain(monthlyReportVO);

        YearReportVO yearReportVO = new YearReportVO();
        yearReportVO.setQueryDate(WgrDate.getCurrentDateStr());
        dailyReportDubboService.yearCalcMain(yearReportVO);



    }
}
